import { DISPLAY_TYPE_SWITCH } from '@/components/Custom/CommonList/Constant'
export default {
  data() {
    return {
      listConfig: {
        btns: [
          {
            name: '新增',
            type: 'primary',
            onClick: () => {
              // this.addData()
            }
          }
        ],
        columns: [
          {
            prop: 'name',
            label: '品类名称'
          },
          {
            prop: 'code',
            label: '品类code'
          },
          {
            prop: 'status',
            label: '状态',
            align: 'center',
            type: DISPLAY_TYPE_SWITCH,
            onchange: (val, row) => {
              // this.onchange(val, row)
            }
          }
        ],
        opt: {
          buttons: [
            {
              text: '查看',
              onClick: (record) => {
                // this.viewData(record, 'detail')
              }
            },
            {
              text: '编辑',
              onClick: (record) => {
                // this.viewData(record, 'edit')
              }
            }
          ]
        }
      }
    }
  }
}
